<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>
<!-- TPLSTART 以上内容不需更改，保证该TPL页内的标签匹配即可 -->

<{$osadmin_action_alert}>
<{$osadmin_quick_note}>
<div style="border:0px;padding-bottom:5px;height:auto">
	<form action="" method="GET" style="margin-bottom:0px" id="customer-search-form">
	<div style="float:left;margin-right:5px">
		<label>模糊搜索</label>
		<input type="text" name="searchVal" value="<{$_GET.searchVal}>" placeholder="输入客户名称" style="width:250px;"> 
	</div>

	<div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
		<button type="submit" class="btn btn-primary"><strong>搜索</strong></button>
	</div>
	<div style="clear:both;"></div>
	<a href="customer.php?method=download" style="display:block;border:1px solid #08c;width:80px;height:20px;line-height:20px;text-align:center;float:left;">导出客户</a>
	</form>

	    <div style="clear:both;margin-top:20px;"></div>
		<form action="customer.php?method=import" enctype="multipart/form-data" method="post" name="uploadfile">
		    <input type="file" name="upfile"  style="float:left;" /> 
			<input type="submit"  value="导入客户" />
		</form> 
</div>
<div class="block">
	<a href="#page-stats" class="block-heading" data-toggle="collapse">客户列表</a>
	<div id="page-stats" class="block-body collapse in">
		<table class="table table-striped">
			<thead>
			<tr>
				<th>唯一标识</th>
				<th>省份</th>
				<th>城市</th>
				<th>客户名称</th>
				<th>联系人</th>
				<th>客户地址</th>
				<th>机型</th>
				<th>机器序列号</th>
				<th>拜访时间</th>
				<!-- <th width="80px">操作</th> -->
			</tr>
			</thead>
			<tbody>							  
			<{foreach name=customer from=$customers item=customer}>				 
				<tr>
				    <td><{$customer.unque_number}></td>
					<td><{$customer.province}></td>
					<td><{$customer.city}></td>
					<td><{$customer.customer_name}></td>
					<td><{$customer.real_user}></td>
					<td><{$customer.customer_adress}></td>
					<td><{$customer.machine_type}></td>
					<td><{$customer.machine_number}></td>
					<td><{$customer.talk_time}></td>
					<!-- <td>
						<a href="machine_modify.php?method=modify&machine_id=<{$machine.machine_id}>" title="详情" style="cursor:point;">详情</a>
					</td> -->
				</tr>
			<{/foreach}>
		  </tbody>
		</table>  
	</div>
	<!--- START 分页模板 --->
            <{$page_html}>
    <!--- END --->
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<{$osadmin_action_confirm}>
	
<!-- TPLEND 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<{include file="footer.tpl" }>